package cn.openea.perpartner.payment.web.subpoints.service;

import cn.openea.perpartner.payment.web.subpoints.entity.SubPoint;
import cn.openea.perpartner.payment.web.subpoints.dto.SubPointDto;
import cn.openea.perpartner.payment.web.subpoints.entity.SubPointLog;

import java.util.List;

/**
 * @author Weird077
 * @description TODO
 * @date 2022-06-27 15:39
 */
public interface ISubPaymentService {
    List<SubPointLog> selectList(String userId, String sceneId, String operType);
    SubPoint selectPointsByUserId(String userId, String sceneId);
    boolean add(SubPointDto dto);
    boolean sub(SubPointDto dto);
    boolean extract(SubPointDto dto);
    boolean redeem(SubPointDto dto);
    double getTotalPoints(String userId,String sceneId);
    boolean pointsToWallet(SubPointDto dto);
}
